package com.douxg.fastCoding.web.dto;

import com.douxg.fastCoding.web.entity.DbInfo;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description
 * @Auther
 * @Date 2020-07-22 00:35:58
 */
@Data
@Accessors(chain = true)
public class DbInfoDto extends DbInfo {
    private String idFmt;
    private String startCreateTimeFmt;
    private String endCreateTimeFmt;
    private String startUpdateTimeFmt;
    private String endUpdateTimeFmt;
    private String projectIdFmt;
    private String projectName;

    public DbInfoDto setProjectIdFmt(String projectIdFmt) {
        this.projectIdFmt = projectIdFmt;
        if (projectIdFmt != null) {
            super.setProjectId(Long.parseLong(projectIdFmt));
        }
        return this;
    }
}
